<?php

class CacheSlotsPk extends CacheSlotsAbstract
{
    public function __construct($tableName, $id, $lifetime = 0, $dependency = null)
    {
	if (!$id || !$tableName) {
	    throw new Exception('Table name or id is not defined');
	}
	
	$cacheId = CacheManager::getCacheKey(array(
	    'pk', strtolower(trim($tableName)), $id
	));
	
	parent::__construct($cacheId, null, $lifetime, $dependency);
    }
}
?>
